package com.zy.ioc.pro5_ioc_import;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @program: mavenTest153
 * @description:
 * @author: zy
 * @create: 2025-07-13 09:06
 */
public class AppConfig_3_Test {
    public static void main(String[] args) {
        ApplicationContext ac=new AnnotationConfigApplicationContext(AppConfig_3.class);
        String[] names= ac.getBeanDefinitionNames();
        for( String n:names){
            System.out.println(  n );
        }
    }
}
